from django.urls import path,re_path
from . import views

urlpatterns = [
    path('image_code/', views.image_code_view, name='image_code'),  # 图形验证码路由
    re_path('username/(?P<username>\w{5,20})/',views.check_username_view, name='check_username'), # 检查用户名是否注册路由
    re_path('mobile/(?P<mobile>1[3-9]\d{9})/',views.check_mobile_view, name='check_mobile'),      # 检查手机号码是否注册路由
]